package com.hdaccp.shuiguoD.service.impl;

import com.hdaccp.shuiguoD.dao.XiaoshoulsDao;
import com.hdaccp.shuiguoD.entity.Shangpin;
import com.hdaccp.shuiguoD.entity.Xiaoshouls;
import com.hdaccp.shuiguoD.service.XiaoshoulsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class XiaoshoulsServiceImpl implements XiaoshoulsService {
    @Autowired
    private XiaoshoulsDao xiaoshoulsDao;


    @Override
    public int addhuo(Xiaoshouls xiaoshouls) {
        return xiaoshoulsDao.addhuo(xiaoshouls);
    }

    @Override
    public int update(Shangpin shangpin) {
        return xiaoshoulsDao.updata(shangpin);
    }

    @Override
    public List<Xiaoshouls> queryAll() {
        return xiaoshoulsDao.queryAll();
    }
}
